<?php
/**
 * Admin Header
 * @filesource
 */
/**
 * Namespace
 */
namespace plurious\apps\admin\controller\common;
/**
 * Dependencies
 */
use framework\engine\Controller;
/**
 * Header Controller for the Admin Context
 * 
 * Extends Controller.
 * 
 * @author Randy Casburn <randy@plurious.com>
 * @copyright Copyright Plurious Software, all rights reserved
 * @license MIT
 * @license http://www.opensource.org/licenses/mit-license.html
 * @link http://plurious.com/framework/documentation/classes/Front.html
 * @version 2.1
 * 
 * @uses framework\engine\Controller (extends - therefore required)
 */
class Header extends Controller {
    /**
     * Allows caching of the page
     * 
     * Do not cache dynamic content.
     * @var bool $isCachable
     */
    protected $isCachable = true;
    /**
     * Sets up the header display
     */
    public function index() {
        
        $this->data['page_name'] = $this->registry->get('page_name');
        $this->data['tagline'] = 'Welcome to the Plurious Framework';
        $this->data['home_href'] = $this->url->link('home');
        $this->data['search_href'] = $this->url->link('search');
        $this->data['breadcrumbs'] = $this->session->get('breadcrumbs');
        
        $this->render();
    }

}

?>